﻿<UserControl x:Class="Airborne.ScrumPoker.Module.Developer.Views.TimerView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:converter="clr-namespace:Airborne.ScrumPoker.Module.Converters;assembly=Airborne.ScrumPoker.Module"
    Height="35" Width="350">
    <UserControl.Resources>
        <converter:ColourTimerConverter x:Key="colourConverter"/>
    </UserControl.Resources>
    <Border CornerRadius="5" BorderThickness="0.5" BorderBrush="#ccc" Padding="2" Background="#2e2926" Width="Auto" Height="Auto" HorizontalAlignment="Center" VerticalAlignment="Center" >

        <Border.BitmapEffect>
            <OuterGlowBitmapEffect GlowColor="Black" GlowSize="3"/>
        </Border.BitmapEffect>
        
        <ProgressBar Name="CountDown" Value="{Binding Path=CurrentCount}"  Foreground="{Binding Path=CurrentCount, Converter={StaticResource colourConverter}}" Width="350" Height="30" IsHitTestVisible="False" IsTabStop="False" SmallChange="1" />
        
        <!--<Grid Visibility="Collapsed" >
            <Image Source="pack://application:,,,/Airborne.ScrumPoker.Module;Component/Resources/Images/ClockBackDigitalUpright.png" Stretch="None" HorizontalAlignment="Left" VerticalAlignment="Top" />
            <TextBlock Grid.Row="0" 
                       Text="{Binding Path=CurrentCount}" 
                       Foreground="{Binding Path=CurrentCount, Converter={StaticResource colourConverter}}"
                       TextAlignment="Right" 
                       FontFamily="pack://application:,,,/Airborne.ScrumPoker.Module;Component/Resources/Fonts/#Digital Readout Upright"
                       FontSize="72"
                       Margin="0,-4,5,0" >
            </TextBlock> 
        </Grid>-->
    </Border>
</UserControl>
